From: Florian Müllner Date: Thu, 10 Feb 2022 17:18:34 +0000 (+0100) Subject: ci: Include .ui files in POTFILES check X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~53 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5a18f00fa642806291ce29952d1a4769cb88a417;p=gnome-shell.git ci: Include .ui files in POTFILES check As the previous commit shows, just checking source files isn't enough. Extending the existing check to .ui files should make sure that we catch that kind of breakage in the future before it hits translators. Part-of: --- diff --git a/.gitlab-ci/check-potfiles.sh b/.gitlab-ci/check-potfiles.sh index a36fe7539..82f101cf8 100755 --- a/.gitlab-ci/check-potfiles.sh +++ b/.gitlab-ci/check-potfiles.sh @@ -1,10 +1,14 @@ #!/usr/bin/env bash srcdirs="src subprojects/extensions-tool" +uidirs="js subprojects/extensions-app" # find source files that contain gettext keywords files=$(grep -lR --include='*.c' '\(gettext\|[^I_)]_\)(' $srcdirs) +# find ui files that contain translatable string +files="$files "$(grep -lRi --include='*.ui' 'translatable="[ty1]' $uidirs) + # filter out excluded files if [ -f po/POTFILES.skip ]; then files=$(for f in $files; do ! grep -q ^$f po/POTFILES.skip && echo $f; done)